﻿@model SelfMadeMillionaire.Web.Infrastructure.ViewModels.PayPal.PayPalViewModel

<form id="paypalForm" action="@Model.PayPalServerUrl" target="_blank">
@Html.Hidden("cmd", "_xclick")
	@Html.Hidden("business", Model.BusinessAccount)
	@Html.Hidden("custom", Model.Custom)
	@Html.Hidden("item_name", Model.ItemName)
	@Html.Hidden("item_number", Model.ItemNumber)
	@Html.Hidden("amount", String.Format("{0:f2}", Model.Amount))
	@Html.Hidden("no_shipping", 1)
	@Html.Hidden("return", Model.ReturnUrl)
	@Html.Hidden("cancel_return", Model.CancelUrl)
	@Html.Hidden("notify_url", Model.NotifyUrl)
	<button type="submit" class="btn btn-primary">Checkout with Paypal</button>
</form>